export namespace UserInterface {
  /**
   * 登录请求参数
   */
  export interface ReqLogin {
    username: string;
    password: string;
  }
  /**
   * token
   */
  export interface ResToken {
    token: string;
  }

  /**
   * 保存用户信息
   */
  export interface ReqSave {
    id: number;
    name: string;
    password: string;
    account: string;
    email: string;
    phone: string;
    gender: number;
    remark: string;
  }
  /**
   * 用户信息
   */
  export interface ResUser {
    id: number;
    name: string;
    account: string;
    email: string;
    phone: string;
    status: number;
    gender?: any;
    remark?: any;
    createdTime: string;
    updateTime: string;
  }

  /**
   * 管理员修改用户密码
   */
  export interface ReqAdminChangeUserByPwd {
    account: string;
    password: string;
  }
  /**
   *  用户修改密码
   */
  export interface ReqUserChangePwd extends ReqAdminChangeUserByPwd {
    oldPassword: string;
  }
}
